| JavaScript | Copy Code |
function WebTextEditor1_OnEditorContextMenu(controlId, menuObj)
{
var items = menuObj.RootMenu.Items;
if (items.GetNamedItem("mLookUp") == null)
{
items.Add(new WebMenuSeparatorItem());
items.Add(new WebMenuItem("mLookUp", "Look Up...", null, OnClick));
}
}
|
|
In This Section
How-to: Add Item in Context Menu
Copy Code